$OpenBSD: patch-src_plugins_qmakeprojectmanager_qmakebuildconfiguration_cpp,v 1.3 2017/06/14 17:11:20 rsadowski Exp $

When calling gmake, override the CXX and LINK variables in Makefiles generated
by qmake by setting gmake's command line arguments. Makes it possible to
compile C++11 code.

Index: src/plugins/qmakeprojectmanager/qmakebuildconfiguration.cpp
--- src/plugins/qmakeprojectmanager/qmakebuildconfiguration.cpp.orig
+++ src/plugins/qmakeprojectmanager/qmakebuildconfiguration.cpp
@@ -677,6 +677,7 @@ void QmakeBuildConfigurationFactory::configureBuildCon
     buildSteps->insertStep(0, qmakeStep);
 
     MakeStep *makeStep = new MakeStep(buildSteps);
+    makeStep->setUserArguments(QLatin1String("CXX=eg++ LINK=eg++"));
     buildSteps->insertStep(1, makeStep);
 
     MakeStep *cleanStep = new MakeStep(cleanSteps);
